# -*- encoding:utf-8 -*-
import math
from PIL import ImageDraw,Image

people=['Charlie','Augustus','Veruca','Violet','Mike','Joe','Willy','Miranda']

links=[('Augustus','Willy'),
       ('Mike','Joe'),
       ('Miranda','Mike'),
       ('Violet','Augustus'),
       ('Miranda','Willy'),
       ('Charlie','Mike'),
       ('Veruca','Joe'),
       ('Miranda','Augustus'),
       ('Joe','Charlie'),
       ('Veruca','Augustus'),
       ('Miranda','Joe')]

sol=[324,190,241,329,298,237,117,181,88,106,56,10,296,370,11,312]

def drawnetwork():
    # 建立image对象
    img = Image.new('RGB',(200,200),(255,255,255))
    draw=ImageDraw.Draw(img)

    draw.line(((5,5),(50,50)),fill=(255,0,0))

    draw.text((5,5),'this is the text',(0,0,0))

    img.show()

drawnetwork()

